package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.MemberRelationAuthDO;
import com.ssy.lingxi.member.merchant.entity.MemberRelationDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 会员关系-下级会员权限Jpa仓库类
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-13
 */
@Repository
public interface MemberRelationAuthRepository extends JpaRepository<MemberRelationAuthDO, Long>, JpaSpecificationExecutor<MemberRelationAuthDO> {

    List<MemberRelationAuthDO> findByRelationIn(List<MemberRelationDO> relations);
}
